package com.aiit.mapper;

import com.aiit.pojo.Perms;
import com.aiit.pojo.Post;
import com.aiit.pojo.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: LuTao
 * @Date: 2022/04/29/21:41
 */
@Mapper
public interface PostMapper extends BaseMapper<Post> {
    //添加岗位
    int posts(Post post);
    //根据用户id查询所有岗位
    Post findPostByUserId( Integer id);
    //用户和岗位的展示信息
    List<Post> PostAll();
    //根据用户的id查询全部的用户所在的岗位
//    List<User> findPostByUserId(User user);
    //查询全部的用户id
}
